package com.ysh.springlogdemo1.component;

import com.ysh.springlogdemo1.model.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class StudentComponent {
    @Bean
    public Student student(){
        return new Student("lisi",10);
    }

    public void print(){
        System.out.println("zzzzzzzzzz");
    }
}
